package com.waa.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.waa.gulimall.common.utils.PageUtils;
import com.waa.gulimall.member.entity.MemberEntity;
import com.waa.gulimall.member.exception.EmailExsitException;
import com.waa.gulimall.member.exception.UsernameExsitException;
import com.waa.gulimall.member.vo.GiteeAccessToken;
import com.waa.gulimall.member.vo.MemberLoginVo;
import com.waa.gulimall.member.vo.MemberRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author waa
 * @email 2460335742@qq.com
 * @date 2022-02-22 10:23:31
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo memberRegistVo);
    void checkEmailUnique (String email) throws EmailExsitException;
    void checkUsernameUnique(String userName) throws UsernameExsitException;

    MemberEntity login(MemberLoginVo memberLoginVo);
    //社交登录
    MemberEntity login(GiteeAccessToken giteeAccessToken);
}

